//
//  CharChangeUtil.h
//  testWX
//
//  Created by 李 坚 on 12-12-27.
//  Copyright (c) 2012年 lijian. All rights reserved.
//

#ifndef __testWX__CharChangeUtil__
#define __testWX__CharChangeUtil__

#include <iostream>
#include <string>
using namespace std;

typedef enum{
	Number,UpperCase,LowerCase,Other
}char_type_e;

class CharChangeUtil {
public:
    static void stringToHex(string str,unsigned char* hex,int* size);
    static string hexToString(unsigned char* hex,int size);
private:
    static char_type_e charType(char ch);
    static    unsigned char changeToHex(char* str);
};

#endif /* defined(__testWX__CharChangeUtil__) */
